#!/bin/sh
date=`date +%Y-%m-%d`
tmp=`date -d $date +%s`
tmt=`expr $tmp \* 1000 + 8 \* 60 \* 60 \* 1000`
tmy=`expr $tmt - 24 \* 60 \* 60 \* 1000`
`curl -X PUT -H "Authorization: Basic QURNSU46S1lMSU4=" -H 'Content-Type: application/json' -d '{"startTime":'$tmy', "endTime":'$tmt', "buildType":"BUILD"}' http://192.168.0.83:7070/kylin/api/cubes/cube_log_module/build`
`curl -X PUT -H "Authorization: Basic QURNSU46S1lMSU4=" -H 'Content-Type: application/json' -d '{"startTime":'$tmy', "endTime":'$tmt', "buildType":"BUILD"}' http://192.168.0.83:7070/kylin/api/cubes/cube_log_login/build`
